app.service("typeTemplateService",function ($http) {
    this.findPage = function (page,rows,entity) {
        return $http.post("/typeTemplate/findPage.do?page="+page+"&rows="+rows,entity);
    }
    this.save = function (entity) {
        return $http.post("/typeTemplate/save.do",entity);
    }
    this.findOne = function (id) {
        return $http.get("/typeTemplate/findOne.do?id="+id);
    }
});